package com.gopay.checkorder.service.task;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import junit.framework.TestCase;

/**
 * 失效银行流水入账任务测试类
 * 
 * @EnterAccountFailTask.java
 * @author yaobo
 * @2014-3-27 下午01:54:50 www.gopay.com.cn Inc.All rights reserved.
 */
public class EnterAccountFailTask extends TestCase {
    private Task enterFailTask1;
    private Task enterFailTask2;
    private Task enterFailTask3;
    private Task enterFailTask4;
    private Task enterFailTask5;
    private Task enterFailTask6;
    private Task enterFailTask7;

    public EnterAccountFailTask() {
        ApplicationContext context = new ClassPathXmlApplicationContext("spring-config.xml");
        enterFailTask1 = (Task) context.getBean("enterAccountFail-1");
        enterFailTask2 = (Task) context.getBean("enterAccountFail-2");
        enterFailTask3 = (Task) context.getBean("enterAccountFail-3");
        enterFailTask4 = (Task) context.getBean("enterAccountFail-4");
        enterFailTask5 = (Task) context.getBean("enterAccountFail-5");
        enterFailTask6 = (Task) context.getBean("enterAccountFail-6");
        enterFailTask7 = (Task) context.getBean("enterAccountFail-7");
    }

    /**
     * 测试：自动化任务
     */
    public void testDoTask() {
//        enterFailTask1.doTask();
//        enterFailTask2.doTask();
        enterFailTask3.doTask();
//        enterFailTask4.doTask();
//        enterFailTask5.doTask();
//        enterFailTask6.doTask();
//        enterFailTask7.doTask();
    }
}
